package base.study.chapter4;

import java.time.LocalDate;

/**
 * @description TODO(用一句话描述方法的主要功能)
 */
public class CalendarTest {

    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
        int today = now.getDayOfMonth();
        LocalDate firstDateOfMonth = now.minusDays(today - 1);

        System.out.println(firstDateOfMonth.getDayOfMonth());

    }
}
